package com.gwnet.user.service;

import com.gwnet.common.bean.vo.LoginVO;
import com.gwnet.user.domain.CusUser;
import com.gwnet.user.domain.bo.UserLoginBO;

/**
 * @author: WangLiang
 * @date: 2024/7/20 10:43
 */
public interface LoginService {

    /**
     * 发送短信
     * @param phone 电话号
     * @return
     */
    Boolean sendSms(String phone);

    /**
     * 验证码 注册/登录
     * @param loginBO
     * @return
     */
    LoginVO smsRegOrLogin(UserLoginBO loginBO);

    /**
     * 根据用户手机号获取用户信息
     * @param phone
     * @return
     */
    CusUser getUserByPhone(String phone);

    /**
     * 根据CusUser生成登录信息
     * @param cusUser
     * @return
     */
    LoginVO buildLoginVO(CusUser cusUser);

}
